﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 产品管理表
    /// </summary>
    public class ProductManagement
    {
        /// <summary>
        /// 产品唯一标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ProductID { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ProductName { get; set; }

        /// <summary>
        /// 内部编码
        /// </summary>
        /// 
        [MaxLength(50)]
        public string InternalCode { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Specification { get; set; }

        /// <summary>
        /// 类别ID--外键
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 存储单位
        /// </summary>
        /// 
        [MaxLength(50)]
        public string StorageUnit { get; set; }

        /// <summary>
        /// 预警上限
        /// </summary>
        public int WarningUpperLimit { get; set; }

        /// <summary>
        /// 预警下限
        /// </summary>
        public int LowerAlertLimit { get; set; }

        /// <summary>
        /// 包装类型
        /// </summary>
        /// 
        [MaxLength(50)]
        public string PackagingType { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 默认仓库--外键
        /// </summary>
        public int WarehousesId {  get; set; }
        /// <summary>
        /// 默认库位--外键
        /// </summary>
        public int LocationId {  get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 默认供应商ID
        /// </summary>
        public int DefaultSupplierId { get; set; }

        /// <summary>
        /// 是否删除(1-删除 0-正常)
        /// </summary>
        public bool IsDeleted { get; set; }



    }
}
